<?php
$url='http://localhost/abook/index.php/client/search';
$str=array('sk'=>'php','page'=>1);
$body=json_encode($str);
//echo $body;
$options=array('method'=>'POST','content'=>$body);
$context=stream_context_create(array('http'=>$options));
print file_get_contents($url,false,$context);
?>
